f=open('d:/access.log')
boy=[]
girl=[]
ips={1:2,1:3}

count=0
for each_line in f:
       ip=each_line.split('- -',1)[0]
       origin_ip=ip
       temp_ip=ip.replace('.','',3)

       if ip in ips.keys():
              temp=ips[ip]
       else:
              temp=[0,0,0]
       
       temp[0]=ip
       temp[1]+=1
       print(temp)
       ips[ip]=temp
print(ips)

